package com.luzhikun.myshopping.domaim;

/**
 * @Author Rookie Coder
 * @Description
 * @Date
 **/
public class Product {
    private String pid;
    private String pname;
    private String pdate;
    private String pfactory;

    public Product() {
    }

    public Product(String pname, String pdate, String pfactory) {
        this.pname = pname;
        this.pdate = pdate;
        this.pfactory = pfactory;
    }

    public Product(String pid, String pname, String pdate, String pfactory) {
        this.pid = pid;
        this.pname = pname;
        this.pdate = pdate;
        this.pfactory = pfactory;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getPdate() {
        return pdate;
    }

    public void setPdate(String pdate) {
        this.pdate = pdate;
    }

    public String getPfactory() {
        return pfactory;
    }

    public void setPfactory(String pfactory) {
        this.pfactory = pfactory;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", pdate=" + pdate +
                ", pfactory='" + pfactory + '\'' +
                '}';
    }
}
